package com.aspose.cells;

class zbmq extends zl {
   private char e;

   public zbmq(zhh var1, String var2) {
      super(var1, var2);
      this.e = (char)(var2.charAt(0) | 32);
   }

   protected void a(char[] var1, int var2, int var3) {
   }

   public zxz a(zxu var1, DateTime var2, double var3, boolean var5) {
      if (var5) {
         if (var2.compareTo(c) > 0) {
            return this.a(var1, var2);
         }

         var2 = var2.addMilliseconds(500.0D);
      }

      zxz var6 = super.a(var1, var2, var3, var5);
      if (var6.f() != 7) {
         return var6;
      } else {
         if (this.e == 'y') {
            var6.a(3, (String)com.aspose.cells.b.a.zo.a(var2.getYear() % 100));
         } else if (this.e == 'm') {
            var6.a(3, (String)com.aspose.cells.b.a.zo.a(var2.getMonth()));
         } else if (this.e == 'd') {
            var6.a(3, (String)com.aspose.cells.b.a.zo.a(var2.getDay()));
         } else if (this.e == 'h') {
            var6.a(3, (String)com.aspose.cells.b.a.zo.a(var2.getHour()));
         } else {
            var6.a(3, (String)com.aspose.cells.b.a.zo.a(var2.getSecond()));
         }

         return var6;
      }
   }
}
